package com.webchat.common.config.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 通用缓存刷新注解
 *z
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExecAfterCall {

    /**
     * 缓存刷新bean对象
     *
     * @return
     */
    Class<?> clazz();

    /**
     * 缓存刷新方法名
     *
     * @return
     */
    String method();

    boolean async() default false;
}
